package com.dm.utils;

import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.dm.filter.SessionFilter;


@Configuration
public class ConfigInfo {
		
	 	@Bean
	    public FilterRegistrationBean registFilter() {
	        FilterRegistrationBean registration = new FilterRegistrationBean();
	        registration.setFilter(new SessionFilter());
	        registration.addUrlPatterns("/*");
	        registration.setName("sessionFilter");
	        registration.setOrder(1);
	        return registration;
	    }
}
